/*
 * @Author: Simon 1958058172@qq.com
 * @Date: 2025-08-08 11:39:50
 * @LastEditors: Simon 1958058172@qq.com
 * @LastEditTime: 2025-08-08 11:53:55
 * @FilePath: \java.1212\csdn\baozhuang\li06\work03\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package csdn.baozhuang.li06.work03;

import java.lang.reflect.Array;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入学生信息，格式为： 学号：姓名：分数  。");
        String str=scanner.nextLine();
        String[] strings=str.split(":");
        String sId=strings[0];   int id= Integer.parseInt(sId);
        String name=strings[1];
        String sScore=strings[2]; int score= Integer.parseInt(sScore);
        Student student=new Student(id,name,score);

        String s=student.toString();
        System.out.println(s);
        
    }


}
